import request from "../utils/request";

/**
 * 查询数据
 * @param data
 */
export function bookList(data) {
    return request({
        url: '/api/exchange-book/bookList',
        method: 'POST',
        data
    });
}

export function createExchangeBook(data) {
    return request({
        url: '/api/exchange-book/createExchangeBook',
        method: 'POST',
        data
    });
}

export function updateExchangeBook(data) {
    return request({
        url: '/api/exchange-book/updateExchangeBook',
        method: 'POST',
        data
    });
}
export function updateDefaultExchangeBookStatus(data) {
    return request({
        url: '/api/exchange-book/updateDefaultExchangeBookStatus',
        method: 'POST',
        data
    });
}

/**
 * 查询图标
 * @param data
 */
export function iconsList(data) {
    return request({
        url: '/api/exchange-book-icon/iconsList',
        method: 'POST',
        data
    });
}

/**
 * 查询类别
 * @param data
 */
export function billTypeList(data) {
    return request({
        url: '/api/exchange-bill-type/billTypeList',
        method: 'POST',
        data
    });
}


/**
 * 查询
 * @param data
 */
export function billList(data) {
    return request({
        url: '/api/exchange-bill/billList',
        method: 'POST',
        data
    });
}

/**
 * 创建
 * @param data
 */
export function createBill(data) {
    return request({
        url: '/api/exchange-bill/createBill',
        method: 'POST',
        data
    });
}

/**
 * 删除
 * @param data
 */
export function deleteBill(id) {
    return request({
        url: '/api/exchange-bill/deleteBill?id=' + id,
        method: 'GET'
    });
}


























